<template>
  <div class="main">
    <el-icon :size="80" color="yellow">
      <Warning />
    </el-icon>
    <div class="title-toast">404 提示</div>
    <div class="content">你找的页面走丢了~</div>
    <el-button type="primary" @click="handleClick"> 返回首页 </el-button>
  </div>
</template>

<script setup>
import { useRouter } from "vue-router";
const router = useRouter();
const handleClick = () => {
  router.push({
    path: "/",
  });
};
</script>

<style lang="scss" scoped>
.main {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  .title-toast {
    font-weight: 800;
    font-size: 30px;
    margin: 10px 0;
  }

  .content {
    margin: 0 0 10px 0;
  }
}
</style>
